import http from './http/index';

export function apiGetEquipmentPage(data: any) {
  return http({
    method: 'POST',
    url: '/api/device/record/page',
    data,
  });
}

export function apiAddEquipment(data: any) {
  return http({
    method: 'POST',
    url: '/api/device/record/create',
    data,
  });
}

export function apiEditEquipment(data: any) {
  return http({
    method: 'POST',
    url: '/api/device/record/update',
    data,
  });
}

export function apiGetEquipmentDetail(data: any) {
  return http({
    method: 'GET',
    url: `/api/device/record/get/${data.id}`,
  });
}

export function apiDelEquipment(data: any) {
  return http({
    method: 'GET',
    url: `/api/device/record/delete/${data.id}`,
  });
}
